package object;

import java.util.Date;
import java.util.logging.Logger;

/**
 *
 * @author khiem-18.4
 */
public class Product {

    private int productID;
    private String productName;
    private int producerID;
    private int categoryID;
    private int imageID;
    private String description;
    private float price;
    private int quantity;
    private boolean activated;
    private boolean deleted;
    private Date modifiedDate;

    public Product() {
    }

    public Product(
            int productID,
            String productName,
            int producerID,
            int categoryID,
            int imageID,
            String description,
            boolean activated,
            boolean deleted,
            int quantity,
            Date modifiedDate) {
        this.productID = productID;
        this.productName = productName;
        this.producerID = producerID;
        this.categoryID = categoryID;
        this.imageID = imageID;
        this.description = description;
        this.activated = activated;
        this.deleted = deleted;
        this.quantity = quantity;
        this.modifiedDate = modifiedDate;
    }

    public Product(
            int productID,
            String productName,
            String description,
            float price,
            int quantity,
            boolean activated,
            boolean deleted,
            Date modifiedDate) {
        this.productID = productID;
        this.productName = productName;
        this.description = description;
        this.price = price;
        this.quantity = quantity;
        this.activated = activated;
        this.deleted = deleted;
        this.modifiedDate = modifiedDate;
    }

    public boolean isActivated() {
        return activated;
    }

    public void setActivated(boolean activated) {
        this.activated = activated;
    }

    public int getCategoryID() {
        return categoryID;
    }

    public void setCategoryID(int categoryID) {
        this.categoryID = categoryID;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getImageID() {
        return imageID;
    }

    public void setImageID(int imageID) {
        this.imageID = imageID;
    }

    public Date getModifiedDate() {
        return modifiedDate;
    }

    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }

    public int getProducerID() {
        return producerID;
    }

    public void setProducerID(int producerID) {
        this.producerID = producerID;
    }

    public int getProductID() {
        return productID;
    }

    public void setProductID(int productID) {
        this.productID = productID;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    private static final Logger LOG = Logger.getLogger(Product.class.getName());
}
